CONTINUOUS_RECHARGE_ANALYSIS = {
    'real_time_report': False,
    'group_by': '_chn.keyword',
    'interval_type_list': ['day'],
    'day_to_calc': [0, 1, 2, 3, 4, 5, 6, 13, 29, 59, 89],
    'target_event_id': ['register', 'recharge', 'recharge_apply', 'bet_order', 'withdraw'],
    'values': [
        {
            "value_id": "new_active_user",
            "target_value": "_user_id",
            "value_name": "新增用户",
            "filter": [
                {"term": {"_event_id": "register"}}
            ],
            "operation": "cardinality",
            "value_type": "long",
            "hide_result": True
        },
        {
            "value_id": "recharge_user_1",
            "target_value": "_user_id",
            "value_name": "首日充值账号",
            "filter": [
                {"term": {"_event_id": "recharge"}},
                {"term": {"_active_days": 0}}
            ],
            "time_range": {
                "_event_time": [0, 0]
            },
            "operation": "cardinality",
            "value_type": "long",
            "description": "首日充值的新用户数量"
        },
        {
            "value_id": "recharge_user_2",
            "target_value": "_user_id",
            "value_name": "次日充值账号",
            "filter": [
                {"term": {"_event_id": "recharge"}},
                {"term": {"_active_days": 1}}
            ],
            "time_range": {
                "_event_time": [1, 1]
            },
            "operation": "cardinality",
            "value_type": "long",
            "description": "次日充值的新用户数量"
        },
        {
            "value_id": "recharge_user_3",
            "target_value": "_user_id",
            "value_name": "3日充值账号",
            "filter": [
                {"term": {"_event_id": "recharge"}},
                {"term": {"_active_days": 2}}
            ],
            "time_range": {
                "_event_time": [2, 2]
            },
            "operation": "cardinality",
            "value_type": "long",
            "description": "3日充值的新用户数量"
        },
        {
            "value_id": "recharge_user_4",
            "target_value": "_user_id",
            "value_name": "4日充值账号",
            "filter": [
                {"term": {"_event_id": "recharge"}},
                {"term": {"_active_days": 3}}
            ],
            "time_range": {
                "_event_time": [3, 3]
            },
            "operation": "cardinality",
            "value_type": "long",
            "description": "4日充值的新用户数量"
        },
        {
            "value_id": "recharge_user_5",
            "target_value": "_user_id",
            "value_name": "5日充值账号",
            "filter": [
                {"term": {"_event_id": "recharge"}},
                {"term": {"_active_days": 4}}
            ],
            "time_range": {
                "_event_time": [4, 4]
            },
            "operation": "cardinality",
            "value_type": "long",
            "description": "5日充值的新用户数量"
        },
        {
            "value_id": "recharge_user_6",
            "target_value": "_user_id",
            "value_name": "6日充值账号",
            "filter": [
                {"term": {"_event_id": "recharge"}},
                {"term": {"_active_days": 5}}
            ],
            "time_range": {
                "_event_time": [5, 5]
            },
            "operation": "cardinality",
            "value_type": "long",
            "description": "6日充值的新用户数量"
        },
        {
            "value_id": "recharge_user_7",
            "target_value": "_user_id",
            "value_name": "7日充值账号",
            "filter": [
                {"term": {"_event_id": "recharge"}},
                {"term": {"_active_days": 6}}
            ],
            "time_range": {
                "_event_time": [6, 6]
            },
            "operation": "cardinality",
            "value_type": "long",
            "description": "7日充值的新用户数量"
        },
        {
            "value_id": "recharge_user_15",
            "target_value": "_user_id",
            "value_name": "15日充值账号",
            "filter": [
                {"term": {"_event_id": "recharge"}},
                {"term": {"_active_days": 14}}
            ],
            "time_range": {
                "_event_time": [14, 14]
            },
            "operation": "cardinality",
            "value_type": "long",
            "description": "15日充值的新用户数量"
        },
        {
            "value_id": "recharge_user_30",
            "target_value": "_user_id",
            "value_name": "30日充值账号",
            "filter": [
                {"term": {"_event_id": "recharge"}},
                {"term": {"_active_days": 29}}
            ],
            "time_range": {
                "_event_time": [29, 29]
            },
            "operation": "cardinality",
            "value_type": "long",
            "description": "30日充值的新用户数量"
        },
        {
            "value_id": "recharge_user_60",
            "target_value": "_user_id",
            "value_name": "60日充值账号",
            "filter": [
                {"term": {"_event_id": "recharge"}},
                {"term": {"_active_days": 59}}
            ],
            "time_range": {
                "_event_time": [59, 59]
            },
            "operation": "cardinality",
            "value_type": "long",
            "description": "60日充值的新用户数量"
        },
        {
            "value_id": "recharge_user_90",
            "target_value": "_user_id",
            "value_name": "90日充值账号",
            "filter": [
                {"term": {"_event_id": "recharge"}},
                {"term": {"_active_days": 89}}
            ],
            "time_range": {
                "_event_time": [89, 89]
            },
            "operation": "cardinality",
            "value_type": "long",
            "description": "90日充值的新用户数量"
        },
        {
            "value_id": "recharge_amount_1",
            "target_value": "recharge_price",
            "value_name": "首日充值",
            "filter": [
                {"term": {"_event_id": "recharge"}},
                {"term": {"_active_days": 0}}
            ],
            "time_range": {
                "_event_time": [0, 0]
            },
            "value_type": "float",
            "adjust_amount": True,
            "description": "首日新用户的充值金额总和"
        },
        {
            "value_id": "recharge_amount_2",
            "target_value": "recharge_price",
            "value_name": "次日充值",
            "filter": [
                {"term": {"_event_id": "recharge"}},
                {"term": {"_active_days": 1}}
            ],
            "time_range": {
                "_event_time": [1, 1]
            },
            "value_type": "float",
            "adjust_amount": True,
            "description": "次日新用户的充值金额总和"
        },
        {
            "value_id": "recharge_amount_3",
            "target_value": "recharge_price",
            "value_name": "3日充值",
            "filter": [
                {"term": {"_event_id": "recharge"}},
                {"term": {"_active_days": 2}}
            ],
            "time_range": {
                "_event_time": [2, 2]
            },
            "value_type": "float",
            "adjust_amount": True,
            "description": "3日新用户的充值金额总和"
        },
        {
            "value_id": "recharge_amount_4",
            "target_value": "recharge_price",
            "value_name": "4日充值",
            "filter": [
                {"term": {"_event_id": "recharge"}},
                {"term": {"_active_days": 3}}
            ],
            "time_range": {
                "_event_time": [3, 3]
            },
            "value_type": "float",
            "adjust_amount": True,
            "description": "4日新用户的充值金额总和"
        },
        {
            "value_id": "recharge_amount_5",
            "target_value": "recharge_price",
            "value_name": "5日充值",
            "filter": [
                {"term": {"_event_id": "recharge"}},
                {"term": {"_active_days": 4}}
            ],
            "time_range": {
                "_event_time": [4, 4]
            },
            "value_type": "float",
            "adjust_amount": True,
            "description": "5日新用户的充值金额总和"
        },
        {
            "value_id": "recharge_amount_6",
            "target_value": "recharge_price",
            "value_name": "6日充值",
            "filter": [
                {"term": {"_event_id": "recharge"}},
                {"term": {"_active_days": 5}}
            ],
            "time_range": {
                "_event_time": [5, 5]
            },
            "value_type": "float",
            "adjust_amount": True,
            "description": "6日新用户的充值金额总和"
        },
        {
            "value_id": "recharge_amount_7",
            "target_value": "recharge_price",
            "value_name": "7日充值",
            "filter": [
                {"term": {"_event_id": "recharge"}},
                {"term": {"_active_days": 6}}
            ],
            "time_range": {
                "_event_time": [6, 6]
            },
            "value_type": "float",
            "adjust_amount": True,
            "description": "7日新用户的充值金额总和"
        },
        {
            "value_id": "recharge_amount_15",
            "target_value": "recharge_price",
            "value_name": "15日充值",
            "filter": [
                {"term": {"_event_id": "recharge"}},
                {"term": {"_active_days": 14}}
            ],
            "time_range": {
                "_event_time": [14, 14]
            },
            "value_type": "float",
            "adjust_amount": True,
            "description": "15日新用户的充值金额总和"
        },
        {
            "value_id": "recharge_amount_30",
            "target_value": "recharge_price",
            "value_name": "30日充值",
            "filter": [
                {"term": {"_event_id": "recharge"}},
                {"term": {"_active_days": 29}}
            ],
            "time_range": {
                "_event_time": [29, 29]
            },
            "value_type": "float",
            "adjust_amount": True,
            "description": "30日新用户的充值金额总和"
        },
        {
            "value_id": "recharge_amount_60",
            "target_value": "recharge_price",
            "value_name": "60日充值",
            "filter": [
                {"term": {"_event_id": "recharge"}},
                {"term": {"_active_days": 59}}
            ],
            "time_range": {
                "_event_time": [59, 59]
            },
            "value_type": "float",
            "adjust_amount": True,
            "description": "60日新用户的充值金额总和"
        },
        {
            "value_id": "recharge_amount_90",
            "target_value": "recharge_price",
            "value_name": "90日充值",
            "filter": [
                {"term": {"_event_id": "recharge"}},
                {"term": {"_active_days": 89}}
            ],
            "time_range": {
                "_event_time": [89, 89]
            },
            "value_type": "float",
            "adjust_amount": True,
            "description": "60日新用户的充值金额总和"
        },
        {
            "value_id": "recharge_apply_1",
            "target_value": "recharge_apply_price",
            "value_name": "首日充值申请次数",
            "filter": [
                {"term": {"_event_id": "recharge_apply"}},
                {"term": {"_active_days": 0}}
            ],
            "time_range": {
                "_event_time": [0, 0]
            },
            "value_type": "long",
            "operation": "value_count",
            "hide_result": True
        },
        {
            "value_id": "recharge_apply_2",
            "target_value": "recharge_apply_price",
            "value_name": "次日充值申请次数",
            "filter": [
                {"term": {"_event_id": "recharge_apply"}},
                {"term": {"_active_days": 1}}
            ],
            "time_range": {
                "_event_time": [1, 1]
            },
            "value_type": "long",
            "operation": "value_count",
            "hide_result": True
        },
        {
            "value_id": "recharge_apply_3",
            "target_value": "recharge_apply_price",
            "value_name": "3日充值申请次数",
            "filter": [
                {"term": {"_event_id": "recharge_apply"}},
                {"term": {"_active_days": 2}}
            ],
            "time_range": {
                "_event_time": [2, 2]
            },
            "value_type": "long",
            "operation": "value_count",
            "hide_result": True
        },
        {
            "value_id": "recharge_apply_4",
            "target_value": "recharge_apply_price",
            "value_name": "4日充值申请次数",
            "filter": [
                {"term": {"_event_id": "recharge_apply"}},
                {"term": {"_active_days": 3}}
            ],
            "time_range": {
                "_event_time": [3, 3]
            },
            "value_type": "long",
            "operation": "value_count",
            "hide_result": True
        },
        {
            "value_id": "recharge_apply_5",
            "target_value": "recharge_apply_price",
            "value_name": "5日充值申请次数",
            "filter": [
                {"term": {"_event_id": "recharge_apply"}},
                {"term": {"_active_days": 4}}
            ],
            "time_range": {
                "_event_time": [4, 4]
            },
            "value_type": "long",
            "operation": "value_count",
            "hide_result": True
        },
        {
            "value_id": "recharge_apply_6",
            "target_value": "recharge_apply_price",
            "value_name": "6日充值申请次数",
            "filter": [
                {"term": {"_event_id": "recharge_apply"}},
                {"term": {"_active_days": 5}}
            ],
            "time_range": {
                "_event_time": [5, 5]
            },
            "value_type": "long",
            "operation": "value_count",
            "hide_result": True
        },
        {
            "value_id": "recharge_apply_7",
            "target_value": "recharge_apply_price",
            "value_name": "7日充值申请次数",
            "filter": [
                {"term": {"_event_id": "recharge_apply"}},
                {"term": {"_active_days": 6}}
            ],
            "time_range": {
                "_event_time": [6, 6]
            },
            "value_type": "long",
            "operation": "value_count",
            "hide_result": True
        },
        {
            "value_id": "recharge_apply_15",
            "target_value": "recharge_apply_price",
            "value_name": "15日充值申请次数",
            "filter": [
                {"term": {"_event_id": "recharge_apply"}},
                {"term": {"_active_days": 14}}
            ],
            "time_range": {
                "_event_time": [14, 14]
            },
            "value_type": "long",
            "operation": "value_count",
            "hide_result": True
        },
        {
            "value_id": "recharge_apply_30",
            "target_value": "recharge_apply_price",
            "value_name": "30日充值申请次数",
            "filter": [
                {"term": {"_event_id": "recharge_apply"}},
                {"term": {"_active_days": 29}}
            ],
            "time_range": {
                "_event_time": [29, 29]
            },
            "value_type": "long",
            "operation": "value_count",
            "hide_result": True
        },
        {
            "value_id": "recharge_apply_60",
            "target_value": "recharge_apply_price",
            "value_name": "60日充值申请次数",
            "filter": [
                {"term": {"_event_id": "recharge_apply"}},
                {"term": {"_active_days": 59}}
            ],
            "time_range": {
                "_event_time": [59, 59]
            },
            "value_type": "long",
            "operation": "value_count",
            "hide_result": True
        },
        {
            "value_id": "recharge_apply_90",
            "target_value": "recharge_apply_price",
            "value_name": "90日充值申请次数",
            "filter": [
                {"term": {"_event_id": "recharge_apply"}},
                {"term": {"_active_days": 89}}
            ],
            "time_range": {
                "_event_time": [89, 89]
            },
            "value_type": "long",
            "operation": "value_count",
            "hide_result": True
        },
        {
            "value_id": "recharge_count_1",
            "target_value": "recharge_price",
            "value_name": "首日充值次数",
            "filter": [
                {"term": {"_event_id": "recharge"}},
                {"term": {"_active_days": 0}}
            ],
            "time_range": {
                "_event_time": [0, 0]
            },
            "value_type": "long",
            "operation": "value_count",
            "description": "首日新用户的充值订单数"
        },
        {
            "value_id": "recharge_count_2",
            "target_value": "recharge_price",
            "value_name": "次日充值次数",
            "filter": [
                {"term": {"_event_id": "recharge"}},
                {"term": {"_active_days": 1}}
            ],
            "time_range": {
                "_event_time": [1, 1]
            },
            "value_type": "long",
            "operation": "value_count",
            "description": "次日新用户的充值订单数"
        },
        {
            "value_id": "recharge_count_3",
            "target_value": "recharge_price",
            "value_name": "3日充值次数",
            "filter": [
                {"term": {"_event_id": "recharge"}},
                {"term": {"_active_days": 2}}
            ],
            "time_range": {
                "_event_time": [2, 2]
            },
            "value_type": "long",
            "operation": "value_count",
            "description": "3日新用户的充值订单数"
        },
        {
            "value_id": "recharge_count_4",
            "target_value": "recharge_price",
            "value_name": "4日充值次数",
            "filter": [
                {"term": {"_event_id": "recharge"}},
                {"term": {"_active_days": 3}}
            ],
            "time_range": {
                "_event_time": [3, 3]
            },
            "value_type": "long",
            "operation": "value_count",
            "description": "4日新用户的充值订单数"
        },
        {
            "value_id": "recharge_count_5",
            "target_value": "recharge_price",
            "value_name": "5日充值次数",
            "filter": [
                {"term": {"_event_id": "recharge"}},
                {"term": {"_active_days": 4}}
            ],
            "time_range": {
                "_event_time": [4, 4]
            },
            "value_type": "long",
            "operation": "value_count",
            "description": "5日新用户的充值订单数"
        },
        {
            "value_id": "recharge_count_6",
            "target_value": "recharge_price",
            "value_name": "6日充值次数",
            "filter": [
                {"term": {"_event_id": "recharge"}},
                {"term": {"_active_days": 5}}
            ],
            "time_range": {
                "_event_time": [5, 5]
            },
            "value_type": "long",
            "operation": "value_count",
            "description": "6日新用户的充值订单数"
        },
        {
            "value_id": "recharge_count_7",
            "target_value": "recharge_price",
            "value_name": "7日充值次数",
            "filter": [
                {"term": {"_event_id": "recharge"}},
                {"term": {"_active_days": 6}}
            ],
            "time_range": {
                "_event_time": [6, 6]
            },
            "value_type": "long",
            "operation": "value_count",
            "description": "7日新用户的充值订单数"
        },
        {
            "value_id": "recharge_count_15",
            "target_value": "recharge_price",
            "value_name": "15日充值次数",
            "filter": [
                {"term": {"_event_id": "recharge"}},
                {"term": {"_active_days": 14}}
            ],
            "time_range": {
                "_event_time": [14, 14]
            },
            "value_type": "long",
            "operation": "value_count",
            "description": "15日新用户的充值订单数"
        },
        {
            "value_id": "recharge_count_30",
            "target_value": "recharge_price",
            "value_name": "30日充值次数",
            "filter": [
                {"term": {"_event_id": "recharge"}},
                {"term": {"_active_days": 29}}
            ],
            "time_range": {
                "_event_time": [29, 29]
            },
            "value_type": "long",
            "operation": "value_count",
            "description": "30日新用户的充值订单数"
        },
        {
            "value_id": "recharge_count_60",
            "target_value": "recharge_price",
            "value_name": "60日充值次数",
            "filter": [
                {"term": {"_event_id": "recharge"}},
                {"term": {"_active_days": 59}}
            ],
            "time_range": {
                "_event_time": [59, 59]
            },
            "value_type": "long",
            "operation": "value_count",
            "description": "60日新用户的充值订单数"
        },
        {
            "value_id": "recharge_count_90",
            "target_value": "recharge_price",
            "value_name": "90日充值次数",
            "filter": [
                {"term": {"_event_id": "recharge"}},
                {"term": {"_active_days": 89}}
            ],
            "time_range": {
                "_event_time": [89, 89]
            },
            "value_type": "long",
            "operation": "value_count",
            "description": "90日新用户的充值订单数"
        },
        {
            "value_id": "recharge_rate_1",
            "value_name": "首日付费率",
            "value_expr": "recharge_user_1 / new_active_user",
            "is_percentage": True,
            "fmt": lambda v: float("%.2f" % (v * 100)),
            "description": "首日新用户付费账号 / 新用户活跃账号"
        },
        {
            "value_id": "recharge_rate_2",
            "value_name": "次日付费率",
            "value_expr": "recharge_user_2 / new_active_user",
            "is_percentage": True,
            "fmt": lambda v: float("%.2f" % (v * 100)),
            "description": "次日新用户付费账号 / 新用户活跃账号"
        },
        {
            "value_id": "recharge_rate_3",
            "value_name": "3日付费率",
            "value_expr": "recharge_user_3 / new_active_user",
            "is_percentage": True,
            "fmt": lambda v: float("%.2f" % (v * 100)),
            "description": "3日新用户付费账号 / 新用户活跃账号"
        },
        {
            "value_id": "recharge_rate_4",
            "value_name": "4日付费率",
            "value_expr": "recharge_user_4 / new_active_user",
            "is_percentage": True,
            "fmt": lambda v: float("%.2f" % (v * 100)),
            "description": "4日新用户付费账号 / 新用户活跃账号"
        },
        {
            "value_id": "recharge_rate_5",
            "value_name": "5日付费率",
            "value_expr": "recharge_user_5 / new_active_user",
            "is_percentage": True,
            "fmt": lambda v: float("%.2f" % (v * 100)),
            "description": "5日新用户付费账号 / 新用户活跃账号"
        },
        {
            "value_id": "recharge_rate_6",
            "value_name": "6日付费率",
            "value_expr": "recharge_user_6 / new_active_user",
            "is_percentage": True,
            "fmt": lambda v: float("%.2f" % (v * 100)),
            "description": "6日新用户付费账号 / 新用户活跃账号"
        },
        {
            "value_id": "recharge_rate_7",
            "value_name": "7日付费率",
            "value_expr": "recharge_user_7 / new_active_user",
            "is_percentage": True,
            "fmt": lambda v: float("%.2f" % (v * 100)),
            "description": "7日新用户付费账号 / 新用户活跃账号"
        },
        {
            "value_id": "recharge_rate_15",
            "value_name": "15日付费率",
            "value_expr": "recharge_user_15 / new_active_user",
            "is_percentage": True,
            "fmt": lambda v: float("%.2f" % (v * 100)),
            "description": "15日新用户付费账号 / 新用户活跃账号"
        },
        {
            "value_id": "recharge_rate_30",
            "value_name": "30日付费率",
            "value_expr": "recharge_user_30 / new_active_user",
            "is_percentage": True,
            "fmt": lambda v: float("%.2f" % (v * 100)),
            "description": "30日新用户付费账号 / 新用户活跃账号"
        },
        {
            "value_id": "recharge_rate_60",
            "value_name": "60日付费率",
            "value_expr": "recharge_user_60 / new_active_user",
            "is_percentage": True,
            "fmt": lambda v: float("%.2f" % (v * 100)),
            "description": "60日新用户付费账号 / 新用户活跃账号"
        },
        {
            "value_id": "recharge_rate_90",
            "value_name": "90日付费率",
            "value_expr": "recharge_user_90 / new_active_user",
            "is_percentage": True,
            "fmt": lambda v: float("%.2f" % (v * 100)),
            "description": "90日新用户付费账号 / 新用户活跃账号"
        },
        {
            "value_id": "agg_recharge_1",
            "target_value": "recharge_price",
            "value_name": "首日累计充值金额",
            "filter": [
                {"term": {"_event_id": "recharge"}},
            ],
            "time_range": {
                "_event_time": [0, 0],
                "_registered_at": [0, 0]
            },
            "adjust_amount": True,
            "description": "首日总充值金额"
        },
        {
            "value_id": "agg_recharge_2",
            "target_value": "recharge_price",
            "value_name": "次日累计充值金额",
            "filter": [
                {"term": {"_event_id": "recharge"}},
            ],
            "time_range": {
                "_event_time": [0, 1],
                "_registered_at": [0, 0]
            },
            "adjust_amount": True,
            "description": "次日总充值金额"
        },
        {
            "value_id": "agg_recharge_3",
            "target_value": "recharge_price",
            "value_name": "3日累计充值金额",
            "filter": [
                {"term": {"_event_id": "recharge"}},
            ],
            "time_range": {
                "_event_time": [0, 2],
                "_registered_at": [0, 0]
            },
            "adjust_amount": True,
            "description": "3日总充值金额"
        },
        {
            "value_id": "agg_recharge_4",
            "target_value": "recharge_price",
            "value_name": "4日累计充值金额",
            "filter": [
                {"term": {"_event_id": "recharge"}},
            ],
            "time_range": {
                "_event_time": [0, 3],
                "_registered_at": [0, 0]
            },
            "adjust_amount": True,
            "description": "4日总充值金额"
        },
        {
            "value_id": "agg_recharge_5",
            "target_value": "recharge_price",
            "value_name": "5日累计充值金额",
            "filter": [
                {"term": {"_event_id": "recharge"}},
            ],
            "time_range": {
                "_event_time": [0, 4],
                "_registered_at": [0, 0]
            },
            "adjust_amount": True,
            "description": "5日总充值金额"
        },
        {
            "value_id": "agg_recharge_6",
            "target_value": "recharge_price",
            "value_name": "6日累计充值金额",
            "filter": [
                {"term": {"_event_id": "recharge"}},
            ],
            "time_range": {
                "_event_time": [0, 5],
                "_registered_at": [0, 0]
            },
            "adjust_amount": True,
            "description": "6日总充值金额"
        },
        {
            "value_id": "agg_recharge_7",
            "target_value": "recharge_price",
            "value_name": "7日累计充值金额",
            "filter": [
                {"term": {"_event_id": "recharge"}},
            ],
            "time_range": {
                "_event_time": [0, 6],
                "_registered_at": [0, 0]
            },
            "adjust_amount": True,
            "description": "7日总充值金额"
        },
        {
            "value_id": "agg_recharge_15",
            "target_value": "recharge_price",
            "value_name": "15日累计充值金额",
            "filter": [
                {"term": {"_event_id": "recharge"}},
            ],
            "time_range": {
                "_event_time": [0, 14],
                "_registered_at": [0, 0]
            },
            "adjust_amount": True,
            "description": "15日总充值金额"
        },
        {
            "value_id": "agg_recharge_30",
            "target_value": "recharge_price",
            "value_name": "30日累计充值金额",
            "filter": [
                {"term": {"_event_id": "recharge"}},
            ],
            "time_range": {
                "_event_time": [0, 29],
                "_registered_at": [0, 0]
            },
            "adjust_amount": True,
            "description": "30日总充值金额"
        },
        {
            "value_id": "agg_recharge_60",
            "target_value": "recharge_price",
            "value_name": "60日累计充值金额",
            "filter": [
                {"term": {"_event_id": "recharge"}},
            ],
            "time_range": {
                "_event_time": [0, 59],
                "_registered_at": [0, 0]
            },
            "adjust_amount": True,
            "description": "60日总充值金额"
        },
        {
            "value_id": "agg_recharge_90",
            "target_value": "recharge_price",
            "value_name": "90日累计充值金额",
            "filter": [
                {"term": {"_event_id": "recharge"}},
            ],
            "time_range": {
                "_event_time": [0, 89],
                "_registered_at": [0, 0]
            },
            "adjust_amount": True,
            "description": "90日总充值金额"
        },

        {
            "value_id": "agg_user_recharge_1",
            "target_value": "_user_id",
            "value_name": "首日累计充值人数",
            "filter": [
                {"term": {"_event_id": "recharge"}},
            ],
            "time_range": {
                "_event_time": [0, 0],
                "_registered_at": [0, 0]
            },
            "operation": "cardinality",
            "description": "首日总充值人数"
        },
        {
            "value_id": "agg_user_recharge_2",
            "target_value": "_user_id",
            "value_name": "次日累计充值人数",
            "filter": [
                {"term": {"_event_id": "recharge"}},
            ],
            "time_range": {
                "_event_time": [0, 1],
                "_registered_at": [0, 0]
            },
            "operation": "cardinality",
            "description": "次日总充值人数"
        },
        {
            "value_id": "agg_user_recharge_3",
            "target_value": "_user_id",
            "value_name": "3日累计充值人数",
            "filter": [
                {"term": {"_event_id": "recharge"}},
            ],
            "time_range": {
                "_event_time": [0, 2],
                "_registered_at": [0, 0]
            },
            "operation": "cardinality",
            "description": "3日总充值人数"
        },
        {
            "value_id": "agg_user_recharge_4",
            "target_value": "_user_id",
            "value_name": "4日累计充值人数",
            "filter": [
                {"term": {"_event_id": "recharge"}},
            ],
            "time_range": {
                "_event_time": [0, 3],
                "_registered_at": [0, 0]
            },
            "operation": "cardinality",
            "description": "4日总充值人数"
        },
        {
            "value_id": "agg_user_recharge_5",
            "target_value": "_user_id",
            "value_name": "5日累计充值人数",
            "filter": [
                {"term": {"_event_id": "recharge"}},
            ],
            "time_range": {
                "_event_time": [0, 4],
                "_registered_at": [0, 0]
            },
            "operation": "cardinality",
            "description": "5日总充值人数"
        },
        {
            "value_id": "agg_user_recharge_6",
            "target_value": "_user_id",
            "value_name": "6日累计充值金额",
            "filter": [
                {"term": {"_event_id": "recharge"}},
            ],
            "time_range": {
                "_event_time": [0, 5],
                "_registered_at": [0, 0]
            },
            "operation": "cardinality",
            "description": "6日总充值人数"
        },
        {
            "value_id": "agg_user_recharge_7",
            "target_value": "_user_id",
            "value_name": "7日累计充值人数",
            "filter": [
                {"term": {"_event_id": "recharge"}},
            ],
            "time_range": {
                "_event_time": [0, 6],
                "_registered_at": [0, 0]
            },
            "operation": "cardinality",
            "description": "7日总充值人数"
        },
        {
            "value_id": "agg_user_recharge_15",
            "target_value": "_user_id",
            "value_name": "15日累计充值人数",
            "filter": [
                {"term": {"_event_id": "recharge"}},
            ],
            "time_range": {
                "_event_time": [0, 14],
                "_registered_at": [0, 0]
            },
            "operation": "cardinality",
            "description": "15日总充值人数"
        },
        {
            "value_id": "agg_user_recharge_30",
            "target_value": "_user_id",
            "value_name": "30日累计充值人数",
            "filter": [
                {"term": {"_event_id": "recharge"}},
            ],
            "time_range": {
                "_event_time": [0, 29],
                "_registered_at": [0, 0]
            },
            "operation": "cardinality",
            "description": "30日总充值人数"
        },
        {
            "value_id": "agg_user_recharge_60",
            "target_value": "_user_id",
            "value_name": "60日累计充值人数",
            "filter": [
                {"term": {"_event_id": "recharge"}},
            ],
            "time_range": {
                "_event_time": [0, 59],
                "_registered_at": [0, 0]
            },
            "operation": "cardinality",
            "description": "60日总充值人数"
        },
        {
            "value_id": "agg_user_recharge_90",
            "target_value": "_user_id",
            "value_name": "90日累计充值人数",
            "filter": [
                {"term": {"_event_id": "recharge"}},
            ],
            "time_range": {
                "_event_time": [0, 89],
                "_registered_at": [0, 0]
            },
            "operation": "cardinality",
            "description": "90日总充值人数"
        },

        {
            "value_id": "arpu_1",
            "value_name": "首日ARPPU",
            "value_expr": "recharge_amount_1 / recharge_user_1",
            "adjust_amount": True,
            "description": "首日所有付费账号人均付费金额，付费金额 / 付费人数"
        },
        {
            "value_id": "arpu_2",
            "value_name": "次日ARPPU",
            "value_expr": "recharge_amount_2 / recharge_user_2",
            "adjust_amount": True,
            "description": "首日用户第二日的付费金额 / 第二日付费人数"
        },
        {
            "value_id": "arpu_3",
            "value_name": "3日ARPPU",
            "value_expr": "recharge_amount_3 / recharge_user_3",
            "adjust_amount": True,
            "description": "首日用户第三日的付费金额 / 第三日付费人数"
        },
        {
            "value_id": "arpu_4",
            "value_name": "4日ARPPU",
            "value_expr": "recharge_amount_4 / recharge_user_4",
            "adjust_amount": True,
            "description": "首日用户第四日的付费金额 / 第四日付费人数"
        },
        {
            "value_id": "arpu_5",
            "value_name": "5日ARPPU",
            "value_expr": "recharge_amount_5 / recharge_user_5",
            "adjust_amount": True,
            "description": "首日用户第五日的付费金额 / 第五日付费人数"
        },
        {
            "value_id": "arpu_6",
            "value_name": "6日ARPPU",
            "value_expr": "recharge_amount_6 / recharge_user_6",
            "adjust_amount": True,
            "description": "首日用户第六日的付费金额 / 第六日付费人数"
        },
        {
            "value_id": "arpu_7",
            "value_name": "7日ARPPU",
            "value_expr": "recharge_amount_7 / recharge_user_7",
            "adjust_amount": True,
            "description": "首日用户第七日的付费金额 / 第七日付费人数"
        },
        {
            "value_id": "arpu_15",
            "value_name": "15日ARPPU",
            "value_expr": "recharge_amount_15 / recharge_user_15",
            "adjust_amount": True,
            "description": "首日用户第十五日的付费金额 / 第十五日付费人数"
        },
        {
            "value_id": "arpu_30",
            "value_name": "30日ARPPU",
            "value_expr": "recharge_amount_30 / recharge_user_30",
            "adjust_amount": True,
            "description": "首日用户第三十日的付费金额 / 第三十日付费人数"
        },
        {
            "value_id": "arpu_60",
            "value_name": "60日ARPPU",
            "value_expr": "recharge_amount_60 / recharge_user_60",
            "adjust_amount": True,
            "description": "首日用户第六十日的付费金额 / 第六十日付费人数"
        },
        {
            "value_id": "arpu_90",
            "value_name": "90日ARPPU",
            "value_expr": "recharge_amount_90 / recharge_user_90",
            "adjust_amount": True,
            "description": "首日用户第90日的付费金额 / 第90日付费人数"
        },
        {
            "value_id": "ltv_1",
            "value_name": "首日LTV",
            "value_expr": "agg_recharge_1 / new_active_user",
            "adjust_amount": True,
            "description": "首日用户累计付费金额／首日新增账号"
        },
        {
            "value_id": "ltv_2",
            "value_name": "次日LTV",
            "value_expr": "agg_recharge_2 / new_active_user",
            "adjust_amount": True,
            "description": "首日用户二日累计付费金额／首日新增账号"
        },
        {
            "value_id": "ltv_3",
            "value_name": "3日LTV",
            "value_expr": "agg_recharge_3 / new_active_user",
            "adjust_amount": True,
            "description": "首日用户三日累计付费金额／首日新增账号"
        },
        {
            "value_id": "ltv_4",
            "value_name": "4日LTV",
            "value_expr": "agg_recharge_4 / new_active_user",
            "adjust_amount": True,
            "description": "首日用户四日累计付费金额／首日新增账号"
        },
        {
            "value_id": "ltv_5",
            "value_name": "5日LTV",
            "value_expr": "agg_recharge_5 / new_active_user",
            "adjust_amount": True,
            "description": "首日用户五日累计付费金额／首日新增账号"
        },
        {
            "value_id": "ltv_6",
            "value_name": "6日LTV",
            "value_expr": "agg_recharge_6 / new_active_user",
            "adjust_amount": True,
            "description": "首日用户六日累计付费金额／首日新增账号"
        },
        {
            "value_id": "ltv_7",
            "value_name": "7日LTV",
            "value_expr": "agg_recharge_7 / new_active_user",
            "adjust_amount": True,
            "description": "首日用户七日累计付费金额／首日新增账号"
        },
        {
            "value_id": "ltv_15",
            "value_name": "15日LTV",
            "value_expr": "agg_recharge_15 / new_active_user",
            "adjust_amount": True,
            "description": "首日用户十五日累计付费金额／首日新增账号"
        },
        {
            "value_id": "ltv_30",
            "value_name": "30日LTV",
            "value_expr": "agg_recharge_30 / new_active_user",
            "adjust_amount": True,
            "description": "首日用户三十日累计付费金额／首日新增账号"
        },
        {
            "value_id": "ltv_60",
            "value_name": "60日LTV",
            "value_expr": "agg_recharge_60 / new_active_user",
            "adjust_amount": True,
            "description": "首日用户六十日累计付费金额／首日新增账号"
        },
        {
            "value_id": "ltv_90",
            "value_name": "90日LTV",
            "value_expr": "agg_recharge_90 / new_active_user",
            "adjust_amount": True,
            "description": "首日用户90日累计付费金额／首日新增账号"
        },
        {
            "value_id": "agg_tax_1",
            "target_value": "bet_order_tax_amount",
            "value_name": "首日累计税收金额",
            "filter": [
                {"term": {"_event_id": "bet_order"}},
            ],
            "time_range": {
                "_event_time": [0, 0],
                "_registered_at": [0, 0]
            },
            "adjust_amount": True,
            "description": "首日累计税收金额"
        },
        {
            "value_id": "agg_tax_2",
            "target_value": "bet_order_tax_amount",
            "value_name": "次日累计税收金额",
            "filter": [
                {"term": {"_event_id": "bet_order"}},
            ],
            "time_range": {
                "_event_time": [0, 1],
                "_registered_at": [0, 0]
            },
            "adjust_amount": True,
            "description": "次日累计税收金额"
        },
        {
            "value_id": "agg_tax_3",
            "target_value": "bet_order_tax_amount",
            "value_name": "3日累计税收金额",
            "filter": [
                {"term": {"_event_id": "bet_order"}},
            ],
            "time_range": {
                "_event_time": [0, 2],
                "_registered_at": [0, 0]
            },
            "adjust_amount": True,
            "description": "3日累计税收金额"
        },
        {
            "value_id": "agg_tax_4",
            "target_value": "bet_order_tax_amount",
            "value_name": "4日累计税收金额",
            "filter": [
                {"term": {"_event_id": "bet_order"}},
            ],
            "time_range": {
                "_event_time": [0, 3],
                "_registered_at": [0, 0]
            },
            "adjust_amount": True,
            "description": "首日累计税收金额"
        },
        {
            "value_id": "agg_tax_4",
            "target_value": "bet_order_tax_amount",
            "value_name": "4日累计税收金额",
            "filter": [
                {"term": {"_event_id": "bet_order"}},
            ],
            "time_range": {
                "_event_time": [0, 3],
                "_registered_at": [0, 0]
            },
            "adjust_amount": True,
            "description": "4日累计税收金额"
        },
        {
            "value_id": "agg_tax_5",
            "target_value": "bet_order_tax_amount",
            "value_name": "5日累计税收金额",
            "filter": [
                {"term": {"_event_id": "bet_order"}},
            ],
            "time_range": {
                "_event_time": [0, 4],
                "_registered_at": [0, 0]
            },
            "adjust_amount": True,
            "description": "5日累计税收金额"
        },
        {
            "value_id": "agg_tax_6",
            "target_value": "bet_order_tax_amount",
            "value_name": "6日累计税收金额",
            "filter": [
                {"term": {"_event_id": "bet_order"}},
            ],
            "time_range": {
                "_event_time": [0, 5],
                "_registered_at": [0, 0]
            },
            "adjust_amount": True,
            "description": "6日累计税收金额"
        },
        {
            "value_id": "agg_tax_7",
            "target_value": "bet_order_tax_amount",
            "value_name": "7日累计税收金额",
            "filter": [
                {"term": {"_event_id": "bet_order"}},
            ],
            "time_range": {
                "_event_time": [0, 6],
                "_registered_at": [0, 0]
            },
            "adjust_amount": True,
            "description": "7日累计税收金额"
        },
        {
            "value_id": "agg_tax_15",
            "target_value": "bet_order_tax_amount",
            "value_name": "15日累计税收金额",
            "filter": [
                {"term": {"_event_id": "bet_order"}},
            ],
            "time_range": {
                "_event_time": [0, 14],
                "_registered_at": [0, 0]
            },
            "adjust_amount": True,
            "description": "15日累计税收金额"
        },
        {
            "value_id": "agg_tax_30",
            "target_value": "bet_order_tax_amount",
            "value_name": "30日累计税收金额",
            "filter": [
                {"term": {"_event_id": "bet_order"}},
            ],
            "time_range": {
                "_event_time": [0, 29],
                "_registered_at": [0, 0]
            },
            "adjust_amount": True,
            "description": "30日累计税收金额"
        },
        {
            "value_id": "agg_tax_60",
            "target_value": "bet_order_tax_amount",
            "value_name": "60日累计税收金额",
            "filter": [
                {"term": {"_event_id": "bet_order"}},
            ],
            "time_range": {
                "_event_time": [0, 59],
                "_registered_at": [0, 0]
            },
            "adjust_amount": True,
            "description": "60日累计税收金额"
        },
        {
            "value_id": "agg_tax_90",
            "target_value": "bet_order_tax_amount",
            "value_name": "90日累计税收金额",
            "filter": [
                {"term": {"_event_id": "bet_order"}},
            ],
            "time_range": {
                "_event_time": [0, 89],
                "_registered_at": [0, 0]
            },
            "adjust_amount": True,
            "description": "90日累计税收金额"
        },
        {
            "value_id": "_level_fish_bet_amount_1",
            "target_value": 'bet_order_bet_amount',
            "target_index": ["dark3", 'dark4'],
            "value_name": "首日非初级鱼房投注金额",
            "filter": [
                {'term': {'_event_id': 'bet_order'}},
                {"term": {"bet_order_sub_type.keyword": "fish"}},
                {"terms": {"bet_order_third_type.keyword": ["fish_2", "fish_3", "fish_4", "2", "3", "4"]}}
            ],
            "time_range": {
                "_event_time": [0, 0],
                "_registered_at": [0, 0]
            },
            "value_type": "float",
            "hide_result": True,
            "adjust_amount": True,
        },
        {
            "value_id": "_shz_bet_amount_1",
            "target_value": 'bet_order_bet_amount',
            "target_index": ["dark3", 'dark4'],
            "value_name": "首日水浒传投注金额",
            "filter": [
                {'term': {'_event_id': 'bet_order'}},
                {"term": {"bet_order_sub_type.keyword": "shz"}}
            ],
            "time_range": {
                "_event_time": [0, 0],
                "_registered_at": [0, 0]
            },
            "value_type": "float",
            "hide_result": True,
            "adjust_amount": True,
        },
        {
            "value_id": "_level_fish_bet_amount_2",
            "target_value": 'bet_order_bet_amount',
            "target_index": ["dark3", 'dark4'],
            "value_name": "2日非初级鱼房投注金额",
            "filter": [
                {'term': {'_event_id': 'bet_order'}},
                {"term": {"bet_order_sub_type.keyword": "fish"}},
                {"terms": {"bet_order_third_type.keyword": ["fish_2", "fish_3", "fish_4", "2", "3", "4"]}}
            ],
            "time_range": {
                "_event_time": [0, 1],
                "_registered_at": [0, 0]
            },
            "value_type": "float",
            "hide_result": True,
            "adjust_amount": True,
        },
        {
            "value_id": "_shz_bet_amount_2",
            "target_value": 'bet_order_bet_amount',
            "target_index": ["dark3", 'dark4'],
            "value_name": "2日水浒传投注金额",
            "filter": [
                {'term': {'_event_id': 'bet_order'}},
                {"term": {"bet_order_sub_type.keyword": "shz"}}
            ],
            "time_range": {
                "_event_time": [0, 1],
                "_registered_at": [0, 0]
            },
            "value_type": "float",
            "hide_result": True,
            "adjust_amount": True,
        },
        {
            "value_id": "_level_fish_bet_amount_3",
            "target_value": 'bet_order_bet_amount',
            "target_index": ["dark3", 'dark4'],
            "value_name": "3日非初级鱼房投注金额",
            "filter": [
                {'term': {'_event_id': 'bet_order'}},
                {"term": {"bet_order_sub_type.keyword": "fish"}},
                {"terms": {"bet_order_third_type.keyword": ["fish_2", "fish_3", "fish_4", "2", "3", "4"]}}
            ],
            "time_range": {
                "_event_time": [0, 2],
                "_registered_at": [0, 0]
            },
            "value_type": "float",
            "hide_result": True,
            "adjust_amount": True,
        },
        {
            "value_id": "_shz_bet_amount_3",
            "target_value": 'bet_order_bet_amount',
            "target_index": ["dark3", 'dark4'],
            "value_name": "3日水浒传投注金额",
            "filter": [
                {'term': {'_event_id': 'bet_order'}},
                {"term": {"bet_order_sub_type.keyword": "shz"}}
            ],
            "time_range": {
                "_event_time": [0, 2],
                "_registered_at": [0, 0]
            },
            "value_type": "float",
            "hide_result": True,
            "adjust_amount": True,
        },
        {
            "value_id": "_level_fish_bet_amount_4",
            "target_value": 'bet_order_bet_amount',
            "target_index": ["dark3", 'dark4'],
            "value_name": "4日非初级鱼房投注金额",
            "filter": [
                {'term': {'_event_id': 'bet_order'}},
                {"term": {"bet_order_sub_type.keyword": "fish"}},
                {"terms": {"bet_order_third_type.keyword": ["fish_2", "fish_3", "fish_4", "2", "3", "4"]}}
            ],
            "time_range": {
                "_event_time": [0, 3],
                "_registered_at": [0, 0]
            },
            "value_type": "float",
            "hide_result": True,
            "adjust_amount": True,
        },
        {
            "value_id": "_shz_bet_amount_4",
            "target_value": 'bet_order_bet_amount',
            "target_index": ["dark3", 'dark4'],
            "value_name": "4日水浒传投注金额",
            "filter": [
                {'term': {'_event_id': 'bet_order'}},
                {"term": {"bet_order_sub_type.keyword": "shz"}}
            ],
            "time_range": {
                "_event_time": [0, 3],
                "_registered_at": [0, 0]
            },
            "value_type": "float",
            "hide_result": True,
            "adjust_amount": True,
        },
        {
            "value_id": "_level_fish_bet_amount_5",
            "target_value": 'bet_order_bet_amount',
            "target_index": ["dark3", 'dark4'],
            "value_name": "5日非初级鱼房投注金额",
            "filter": [
                {'term': {'_event_id': 'bet_order'}},
                {"term": {"bet_order_sub_type.keyword": "fish"}},
                {"terms": {"bet_order_third_type.keyword": ["fish_2", "fish_3", "fish_4", "2", "3", "4"]}}
            ],
            "time_range": {
                "_event_time": [0, 4],
                "_registered_at": [0, 0]
            },
            "value_type": "float",
            "hide_result": True,
            "adjust_amount": True,
        },
        {
            "value_id": "_shz_bet_amount_5",
            "target_value": 'bet_order_bet_amount',
            "target_index": ["dark3", 'dark4'],
            "value_name": "5日水浒传投注金额",
            "filter": [
                {'term': {'_event_id': 'bet_order'}},
                {"term": {"bet_order_sub_type.keyword": "shz"}}
            ],
            "time_range": {
                "_event_time": [0, 4],
                "_registered_at": [0, 0]
            },
            "value_type": "float",
            "hide_result": True,
            "adjust_amount": True,
        },
        {
            "value_id": "_level_fish_bet_amount_6",
            "target_value": 'bet_order_bet_amount',
            "target_index": ["dark3", 'dark4'],
            "value_name": "6日非初级鱼房投注金额",
            "filter": [
                {'term': {'_event_id': 'bet_order'}},
                {"term": {"bet_order_sub_type.keyword": "fish"}},
                {"terms": {"bet_order_third_type.keyword": ["fish_2", "fish_3", "fish_4", "2", "3", "4"]}}
            ],
            "time_range": {
                "_event_time": [0, 5],
                "_registered_at": [0, 0]
            },
            "value_type": "float",
            "hide_result": True,
            "adjust_amount": True,
        },
        {
            "value_id": "_shz_bet_amount_6",
            "target_value": 'bet_order_bet_amount',
            "target_index": ["dark3", 'dark4'],
            "value_name": "6日水浒传投注金额",
            "filter": [
                {'term': {'_event_id': 'bet_order'}},
                {"term": {"bet_order_sub_type.keyword": "shz"}}
            ],
            "time_range": {
                "_event_time": [0, 5],
                "_registered_at": [0, 0]
            },
            "value_type": "float",
            "hide_result": True,
            "adjust_amount": True,
        },
        {
            "value_id": "_level_fish_bet_amount_7",
            "target_value": 'bet_order_bet_amount',
            "target_index": ["dark3", 'dark4'],
            "value_name": "7日非初级鱼房投注金额",
            "filter": [
                {'term': {'_event_id': 'bet_order'}},
                {"term": {"bet_order_sub_type.keyword": "fish"}},
                {"terms": {"bet_order_third_type.keyword": ["fish_2", "fish_3", "fish_4", "2", "3", "4"]}}
            ],
            "time_range": {
                "_event_time": [0, 6],
                "_registered_at": [0, 0]
            },
            "value_type": "float",
            "hide_result": True,
            "adjust_amount": True,
        },
        {
            "value_id": "_shz_bet_amount_7",
            "target_value": 'bet_order_bet_amount',
            "target_index": ["dark3", 'dark4'],
            "value_name": "7日水浒传投注金额",
            "filter": [
                {'term': {'_event_id': 'bet_order'}},
                {"term": {"bet_order_sub_type.keyword": "shz"}}
            ],
            "time_range": {
                "_event_time": [0, 6],
                "_registered_at": [0, 0]
            },
            "value_type": "float",
            "hide_result": True,
            "adjust_amount": True,
        },
        {
            "value_id": "_level_fish_bet_amount_15",
            "target_value": 'bet_order_bet_amount',
            "target_index": ["dark3", 'dark4'],
            "value_name": "15日非初级鱼房投注金额",
            "filter": [
                {'term': {'_event_id': 'bet_order'}},
                {"term": {"bet_order_sub_type.keyword": "fish"}},
                {"terms": {"bet_order_third_type.keyword": ["fish_2", "fish_3", "fish_4", "2", "3", "4"]}}
            ],
            "time_range": {
                "_event_time": [0, 14],
                "_registered_at": [0, 0]
            },
            "value_type": "float",
            "hide_result": True,
            "adjust_amount": True,
        },
        {
            "value_id": "_shz_bet_amount_15",
            "target_value": 'bet_order_bet_amount',
            "target_index": ["dark3", 'dark4'],
            "value_name": "15日水浒传投注金额",
            "filter": [
                {'term': {'_event_id': 'bet_order'}},
                {"term": {"bet_order_sub_type.keyword": "shz"}}
            ],
            "time_range": {
                "_event_time": [0, 14],
                "_registered_at": [0, 0]
            },
            "value_type": "float",
            "hide_result": True,
            "adjust_amount": True,
        },
        {
            "value_id": "_level_fish_bet_amount_30",
            "target_value": 'bet_order_bet_amount',
            "target_index": ["dark3", 'dark4'],
            "value_name": "30日非初级鱼房投注金额",
            "filter": [
                {'term': {'_event_id': 'bet_order'}},
                {"term": {"bet_order_sub_type.keyword": "fish"}},
                {"terms": {"bet_order_third_type.keyword": ["fish_2", "fish_3", "fish_4", "2", "3", "4"]}}
            ],
            "time_range": {
                "_event_time": [0, 29],
                "_registered_at": [0, 0]
            },
            "value_type": "float",
            "hide_result": True,
            "adjust_amount": True,
        },
        {
            "value_id": "_shz_bet_amount_30",
            "target_value": 'bet_order_bet_amount',
            "target_index": ["dark3", 'dark4'],
            "value_name": "30日水浒传投注金额",
            "filter": [
                {'term': {'_event_id': 'bet_order'}},
                {"term": {"bet_order_sub_type.keyword": "shz"}}
            ],
            "time_range": {
                "_event_time": [0, 29],
                "_registered_at": [0, 0]
            },
            "value_type": "float",
            "hide_result": True,
            "adjust_amount": True,
        },
        {
            "value_id": "_level_fish_bet_amount_60",
            "target_value": 'bet_order_bet_amount',
            "target_index": ["dark3", 'dark4'],
            "value_name": "60日非初级鱼房投注金额",
            "filter": [
                {'term': {'_event_id': 'bet_order'}},
                {"term": {"bet_order_sub_type.keyword": "fish"}},
                {"terms": {"bet_order_third_type.keyword": ["fish_2", "fish_3", "fish_4", "2", "3", "4"]}}
            ],
            "time_range": {
                "_event_time": [0, 59],
                "_registered_at": [0, 0]
            },
            "value_type": "float",
            "hide_result": True,
            "adjust_amount": True,
        },
        {
            "value_id": "_shz_bet_amount_60",
            "target_value": 'bet_order_bet_amount',
            "target_index": ["dark3", 'dark4'],
            "value_name": "60日水浒传投注金额",
            "filter": [
                {'term': {'_event_id': 'bet_order'}},
                {"term": {"bet_order_sub_type.keyword": "shz"}}
            ],
            "time_range": {
                "_event_time": [0, 59],
                "_registered_at": [0, 0]
            },
            "value_type": "float",
            "hide_result": True,
            "adjust_amount": True,
        },
        {
            "value_id": "_level_fish_bet_amount_90",
            "target_value": 'bet_order_bet_amount',
            "target_index": ["dark3", 'dark4'],
            "value_name": "90日非初级鱼房投注金额",
            "filter": [
                {'term': {'_event_id': 'bet_order'}},
                {"term": {"bet_order_sub_type.keyword": "fish"}},
                {"terms": {"bet_order_third_type.keyword": ["fish_2", "fish_3", "fish_4", "2", "3", "4"]}}
            ],
            "time_range": {
                "_event_time": [0, 89],
                "_registered_at": [0, 0]
            },
            "value_type": "float",
            "hide_result": True,
            "adjust_amount": True,
        },
        {
            "value_id": "_shz_bet_amount_90",
            "target_value": 'bet_order_bet_amount',
            "target_index": ["dark3", 'dark4'],
            "value_name": "90日水浒传投注金额",
            "filter": [
                {'term': {'_event_id': 'bet_order'}},
                {"term": {"bet_order_sub_type.keyword": "shz"}}
            ],
            "time_range": {
                "_event_time": [0, 89],
                "_registered_at": [0, 0]
            },
            "value_type": "float",
            "hide_result": True,
            "adjust_amount": True,
        },
        {
            "value_id": "aggs_channel_tax_1",
            "value_name": "首日累积渠道税收",
            "value_expr": "agg_tax_1 + _level_fish_bet_amount_1 * 0.02 + _shz_bet_amount_1 * 0.02",
            "adjust_amount": True,
            "description": "首日累积渠道税收"
        },
        {
            "value_id": "aggs_channel_tax_2",
            "value_name": "2日累积渠道税收",
            "value_expr": "agg_tax_2 + _level_fish_bet_amount_2 * 0.02 + _shz_bet_amount_2 * 0.02",
            "adjust_amount": True,
            "description": "2日累积渠道税收"
        },
        {
            "value_id": "aggs_channel_tax_3",
            "value_name": "3日累积渠道税收",
            "value_expr": "agg_tax_3 + _level_fish_bet_amount_3 * 0.02 + _shz_bet_amount_3 * 0.02",
            "adjust_amount": True,
            "description": "3日累积渠道税收"
        },
        {
            "value_id": "aggs_channel_tax_4",
            "value_name": "4日累积渠道税收",
            "value_expr": "agg_tax_4 + _level_fish_bet_amount_4 * 0.02 + _shz_bet_amount_4 * 0.02",
            "adjust_amount": True,
            "description": "4日累积渠道税收"
        },
        {
            "value_id": "aggs_channel_tax_5",
            "value_name": "5日累积渠道税收",
            "value_expr": "agg_tax_5 + _level_fish_bet_amount_5 * 0.02 + _shz_bet_amount_5 * 0.02",
            "adjust_amount": True,
            "description": "5日累积渠道税收"
        },
        {
            "value_id": "aggs_channel_tax_6",
            "value_name": "6日累积渠道税收",
            "value_expr": "agg_tax_6 + _level_fish_bet_amount_6 * 0.02 + _shz_bet_amount_6 * 0.02",
            "adjust_amount": True,
            "description": "6日累积渠道税收"
        },
        {
            "value_id": "aggs_channel_tax_7",
            "value_name": "7日累积渠道税收",
            "value_expr": "agg_tax_7 + _level_fish_bet_amount_7 * 0.02 + _shz_bet_amount_7 * 0.02",
            "adjust_amount": True,
            "description": "7日累积渠道税收"
        },
        {
            "value_id": "aggs_channel_tax_15",
            "value_name": "15日累积渠道税收",
            "value_expr": "agg_tax_15 + _level_fish_bet_amount_15 * 0.02 + _shz_bet_amount_15 * 0.02",
            "adjust_amount": True,
            "description": "首日累积渠道税收"
        },
        {
            "value_id": "aggs_channel_tax_30",
            "value_name": "30日累积渠道税收",
            "value_expr": "agg_tax_30 + _level_fish_bet_amount_30 * 0.02 + _shz_bet_amount_30 * 0.02",
            "adjust_amount": True,
            "description": "30日累积渠道税收"
        },
        {
            "value_id": "aggs_channel_tax_60",
            "value_name": "60日累积渠道税收",
            "value_expr": "agg_tax_60 + _level_fish_bet_amount_60 * 0.02 + _shz_bet_amount_60 * 0.02",
            "adjust_amount": True,
            "description": "60日累积渠道税收"
        },
        {
            "value_id": "aggs_channel_tax_90",
            "value_name": "90日累积渠道税收",
            "value_expr": "agg_tax_90 + _level_fish_bet_amount_90 * 0.02 + _shz_bet_amount_90 * 0.02",
            "adjust_amount": True,
            "description": "首日累积渠道税收"
        },
        {
            "value_id": "aggs_profit_1",
            "target_value": ["recharge_price", "-", "withdraw_price"],
            "value_name": "首日累计营收",
            "filter": [
                {'terms': {'_event_id': ['recharge', 'withdraw']}},
            ],
            "time_range": {
                "_event_time": [0, 0],
                "_registered_at": [0, 0]
            },
            "adjust_amount": True,
            "description": "首日累计营收"
        },
        {
            "value_id": "aggs_profit_2",
            "target_value": ["recharge_price", "-", "withdraw_price"],
            "value_name": "2日累计营收",
            "filter": [
                {'terms': {'_event_id': ['recharge', 'withdraw']}},
            ],
            "time_range": {
                "_event_time": [0, 1],
                "_registered_at": [0, 0]
            },
            "adjust_amount": True,
            "description": "首日累计营收"
        },
        {
            "value_id": "aggs_profit_3",
            "target_value": ["recharge_price", "-", "withdraw_price"],
            "value_name": "3日累计营收",
            "filter": [
                {'terms': {'_event_id': ['recharge', 'withdraw']}},
            ],
            "time_range": {
                "_event_time": [0, 2],
                "_registered_at": [0, 0]
            },
            "adjust_amount": True,
            "description": "3日累计营收"
        },
        {
            "value_id": "aggs_profit_4",
            "target_value": ["recharge_price", "-", "withdraw_price"],
            "value_name": "4日累计营收",
            "filter": [
                {'terms': {'_event_id': ['recharge', 'withdraw']}},
            ],
            "time_range": {
                "_event_time": [0, 3],
                "_registered_at": [0, 0]
            },
            "adjust_amount": True,
            "description": "4日累计营收"
        },
        {
            "value_id": "aggs_profit_5",
            "target_value": ["recharge_price", "-", "withdraw_price"],
            "value_name": "5日累计营收",
            "filter": [
                {'terms': {'_event_id': ['recharge', 'withdraw']}},
            ],
            "time_range": {
                "_event_time": [0, 4],
                "_registered_at": [0, 0]
            },
            "adjust_amount": True,
            "description": "5日累计营收"
        },
        {
            "value_id": "aggs_profit_6",
            "target_value": ["recharge_price", "-", "withdraw_price"],
            "value_name": "6日累计营收",
            "filter": [
                {'terms': {'_event_id': ['recharge', 'withdraw']}},
            ],
            "time_range": {
                "_event_time": [0, 5],
                "_registered_at": [0, 0]
            },
            "adjust_amount": True,
            "description": "6日累计营收"
        },
        {
            "value_id": "aggs_profit_7",
            "target_value": ["recharge_price", "-", "withdraw_price"],
            "value_name": "7日累计营收",
            "filter": [
                {'terms': {'_event_id': ['recharge', 'withdraw']}},
            ],
            "time_range": {
                "_event_time": [0, 6],
                "_registered_at": [0, 0]
            },
            "adjust_amount": True,
            "description": "7日累计营收"
        },
        {
            "value_id": "aggs_profit_15",
            "target_value": ["recharge_price", "-", "withdraw_price"],
            "value_name": "15日累计营收",
            "filter": [
                {'terms': {'_event_id': ['recharge', 'withdraw']}},
            ],
            "time_range": {
                "_event_time": [0, 14],
                "_registered_at": [0, 0]
            },
            "adjust_amount": True,
            "description": "15日累计营收"
        },
        {
            "value_id": "aggs_profit_30",
            "target_value": ["recharge_price", "-", "withdraw_price"],
            "value_name": "30日累计营收",
            "filter": [
                {'terms': {'_event_id': ['recharge', 'withdraw']}},
            ],
            "time_range": {
                "_event_time": [0, 29],
                "_registered_at": [0, 0]
            },
            "adjust_amount": True,
            "description": "30日累计营收"
        },
        {
            "value_id": "aggs_profit_60",
            "target_value": ["recharge_price", "-", "withdraw_price"],
            "value_name": "60日累计营收",
            "filter": [
                {'terms': {'_event_id': ['recharge', 'withdraw']}},
            ],
            "time_range": {
                "_event_time": [0, 59],
                "_registered_at": [0, 0]
            },
            "adjust_amount": True,
            "description": "60日累计营收"
        },
        {
            "value_id": "aggs_profit_90",
            "target_value": ["recharge_price", "-", "withdraw_price"],
            "value_name": "90日累计营收",
            "filter": [
                {'terms': {'_event_id': ['recharge', 'withdraw']}},
            ],
            "time_range": {
                "_event_time": [0, 89],
                "_registered_at": [0, 0]
            },
            "adjust_amount": True,
            "description": "90日累计营收"
        }
    ]
}
